package com.example.sys.pay.service;

import com.lly835.bestpay.enums.BestPayPlatformEnum;
import com.lly835.bestpay.model.PayResponse;
import org.springframework.stereotype.Service;

@Service
public class SysPayALIPAYHandler implements SysPayHandler {

    @Override
    public Boolean match(PayResponse payResponse) {
        return payResponse.getPayPlatformEnum() == BestPayPlatformEnum.ALIPAY;
    }

    @Override
    public String response(PayResponse payResponse) {
        return "success";
    }
}
